<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button @click="sendRequest">点击发送请求</button>
    <div class="demo" :style="{backgroundColor:'red'}"></div>
  </div>
</template>

<script>
import {getUserInfo} from '@/api/user.js'
export default {
  data() {
    return {
      
    };
  },
  mounted() {
    
  },
  methods: {
   async sendRequest(){
     const { data } = await getUserInfo()
     console.log(data)
    }
  },
};
</script>

<style lang="less" scoped>
 /deep/.demo{
  width: 100px;
  height: 100px;
  background-color: aqua;
 }
</style>
